package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.FollowRelation;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FollowRelationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FollowRelation record);

    FollowRelation selectByPrimaryKey(Long id);

    List<FollowRelation> selectAll();

    int updateByPrimaryKey(FollowRelation record);

    int selectIsFan(@Param("userId") Long userId,@Param("followedId") Long followedId);

    void deleteByBothId(@Param("userId") Long userId,@Param("followedId") Long followedId);

    List<FollowRelation> selectForList(QueryObject queryObject);
}